home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpguides" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpguides</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpguides</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-add-hguide">gimp_image_add_hguide</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> yposition);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-add-vguide">gimp_image_add_vguide</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> xposition);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-delete-guide">gimp_image_delete_guide</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-find-next-guide">gimp_image_find_next_guide</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);
- <link linkend="GimpOrientationType">GimpOrientationType</link> <link linkend="gimp-image-get-guide-orientation">gimp_image_get_guide_orientation</link>
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);
- <link linkend="gint">gint</link> <link linkend="gimp-image-get-guide-position">gimp_image_get_guide_position</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-image-add-hguide">gimp_image_add_hguide ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_add_hguide (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> yposition);</programlisting>
- <para>
- Add a horizontal guide to an image.
- </para>
- <para>
- This procedure adds a horizontal guide to an image. It takes the
- input image and the y-position of the new guide as parameters. It
- returns the guide ID of the new guide.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>yposition</parameter> :</entry>
- <entry> The guide's y-offset from top of image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The new guide.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-add-vguide">gimp_image_add_vguide ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_add_vguide (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> xposition);</programlisting>
- <para>
- Add a vertical guide to an image.
- </para>
- <para>
- This procedure adds a vertical guide to an image. It takes the input
- image and the x-position of the new guide as parameters. It returns
- the guide ID of the new guide.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>xposition</parameter> :</entry>
- <entry> The guide's x-offset from left of image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The new guide.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-delete-guide">gimp_image_delete_guide ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_delete_guide (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);</programlisting>
- <para>
- Deletes a guide from an image.
- </para>
- <para>
- This procedure takes an image and a guide ID as input and removes
- the specified guide from the specified image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>guide_ID</parameter> :</entry>
- <entry> The ID of the guide to be removed.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-find-next-guide">gimp_image_find_next_guide ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_find_next_guide (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);</programlisting>
- <para>
- Find next guide on an image.
- </para>
- <para>
- This procedure takes an image and a guide ID as input and finds the
- guide ID of the successor of the given guide ID in the image's guide
- list. If the supplied guide ID is 0, the procedure will return the
- first Guide. The procedure will return 0 if given the final guide ID
- as an argument or the image has no guides.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>guide_ID</parameter> :</entry>
- <entry> The ID of the current guide (0 if first invocation).
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The next guide's ID.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-guide-orientation">gimp_image_get_guide_orientation ()</title>
- <programlisting><link linkend="GimpOrientationType">GimpOrientationType</link> gimp_image_get_guide_orientation
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);</programlisting>
- <para>
- Get orientation of a guide on an image.
- </para>
- <para>
- This procedure takes an image and a guide ID as input and returns
- the orientations of the guide.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>guide_ID</parameter> :</entry>
- <entry> The guide.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The guide's orientation.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-guide-position">gimp_image_get_guide_position ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_image_get_guide_position (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> guide_ID);</programlisting>
- <para>
- Get position of a guide on an image.
- </para>
- <para>
- This procedure takes an image and a guide ID as input and returns
- the position of the guide relative to the top or left of the image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>guide_ID</parameter> :</entry>
- <entry> The guide.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The guide's position relative to top or left of image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-